package com.sptus.system.domain.alarm;

public class Alarm {
    private final int code;
    private final String description;
    private final int grade;

    private final int alarmCount;

    private final int expireTime;

    public int getGrade() {
        return grade;
    }

    public Alarm(int code, String description, int grade, int alarmCount, int expireTime) {
        this.code = code;
        this.description = description;
        this.grade = grade;
        this.alarmCount = alarmCount;
        this.expireTime = expireTime;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    public int getAlarmCount() {
        return alarmCount;
    }

    public int getExpireTime() {
        return expireTime;
    }

    @Override
    public String toString() {
        return String.format("%03d: %s", code, description);
    }
}



// 使用示例
